//
//  YPProgressHud.m
//  KingSelected
//
//  Created by 杨鹏 on 2023/10/27.
//

#import "YPProgressHud.h"

@implementation YPProgressHud

+ (MBProgressHUD *)showHudInview:(UIView *)v {
    if (!v) {
        v = [UIApplication sharedApplication].keyWindow;
    }
    MBProgressHUD *hu = [MBProgressHUD showHUDAddedTo:v animated:YES];
    return hu;
}
+ (void)hideHudForView:(UIView *)v {
    if (!v) {
        v = [UIApplication sharedApplication].keyWindow;
    }
    [MBProgressHUD hideHUDForView:v animated:YES];
}
@end
